package com.jdaoyun.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 请求头
 */
@Configuration
public class Head {

    /** 请求头秘钥 */
    public static String ACCESSKEY;

    /**
     * 加密秘钥
     */
    public static String SECRETACCESSKEY;

    /**
     * 推送url地址
     */
    public static String BASE_URL;



    @Autowired
    public Head(
            @Value("${head.accessKey}") String accessKey,
            @Value("${head.secretAccessKey}") String secretAccessKey,
            @Value("${head.baseUrl}") String baseUrl
    ) {
         Head.ACCESSKEY=accessKey;
         Head.SECRETACCESSKEY=secretAccessKey;
         Head.BASE_URL=baseUrl;
    }



}
